<div class="page-content">

    <div class="page-header">
        <h1>
            {:model('menu')->getName()}
        </h1>
    </div><!-- /.page-header -->

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row">
                <div class="col-xs-12">
                    <table id="simple-table" class="table  table-bordered table-hover">
                        <thead>
                        <tr>

                            <th>ip地址</th>
                            <th>数据库名</th>
                            <th class="hidden-480">用户名</th>
                            <th>密码</th>
                            <th>操作</th>
                        </tr>
                        </thead>

                        <tbody>
                        {volist name="data" id="vo"}
                        <tr>
                            <td>{$vo.hostname}</td>
                            <td>{$vo.database}</td>
                            <td>{$vo.username}</td>
                            <td>{$vo.password}</td>
                            <td>      <div class="hidden-sm hidden-xs btn-group">

                                <a href='{:url("info","id=$vo[id]")}'
                                <span class="btn btn-xs btn-info">
                                                <i class="ace-icon fa fa-pencil bigger-120"></i>
                                            </span>
                                </a>
                                <a href='javascript:void(0)' onclick="return alert_del('{:url(\"del\",\"id=$vo[id]\")}', '确认要删除『 id={$vo.id} 』这条记录吗？');"
                                <span class="btn btn-xs btn-danger">
                                                <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                            </span>
                                </a>

                            </div></td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div><!-- /.span -->
            </div><!-- /.row -->

            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->
<script type="text/javascript">
    $(function () {
        $(".dr").click(function () {
            var str = $("#exampleInputAmount").val();
            if(str == ''){
                alert('要导入的东西不能为空');
                return false;
            }
        })
    })
</script>



